import type { ObjectDirective } from 'vue'

export const test: ObjectDirective = {
  mounted(el: HTMLButtonElement, binding, vnode) {
    const div = document.createElement('div')
    div.className = 'test'
    el.parentNode?.replaceChild(div, el)
    div.appendChild(el)
  }
}
